import java.util.Arrays;
import java.util.Scanner;

class Test {
    {
        System.out.println("实例代码块被执行");
    }

    static {
        System.out.println("静态代码块被执行");
    }
}


public class Main {
    public static void main(String[] args) {
        Test test1 = new Test();
        Test test2 = new Test();
        Test test3 = new Test();
    }
}

/*
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] a = new int[2];
        a[0] = scanner.nextInt();
        a[1] = scanner.nextInt();
        System.out.println(Arrays.toString(a));
    }
}
*/


/*
import java.util.Random;
class Student {
    private String name;
    private int age;
    private int weight;
    private int grade;

    public static int a = 0;

    public static void add() {
        a++;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void test() {
        System.out.println(this.name + "正在考试");
        Random random = new Random();
        this.grade = random.nextInt()%100;
        System.out.println(this.name + "的考试成绩为" + this.grade);
    }

    public Student(String name, int age, int weight, int grade) {
        this.name = name;
        this.age = age;
        this.weight = weight;
        this.grade = grade;
    }
    public Student() {
        this.name = "无名氏";
        this.age = 20;
        this.weight = 60;
        this.grade = 0;
    }
}


public class Main {
    public static void main(String[] args) {
        Student stu1 = new Student();
        Student.add();
        Student.add();
        Student.add();
        System.out.println("a = " + Student.a);
    }
}

*/


/*public class Main {
    public static void main(String[] args) {
        Student student = new Student();
        student.setAge(99);
        System.out.println(student.getAge());
    }
}*/

/*public class Main {
    public static void main(String[] args) {
        Student student = new Student("张三", 18, 65, 90);
        System.out.println(student.name);
        System.out.println(student.age);
        System.out.println(student.weight);
        System.out.println(student.grade);
    }
}*/


/*public class Main {
    public static void main(String[] args) {
        Student student = new Student();
        student.age = 18;
        student.name = "张三";
        student.grade = 94;
        student.weight = 65;

        student.test();
        System.out.println(student.grade);
    }
}*/


/*
public class Main {
    public static void main(String[] args) {
        Student student = new Student();
        student.age = 18;
        student.name = "张三";
        student.grade = 94;
        student.weight = 65;
        System.out.println(student.age);
        System.out.println(student.name);
        System.out.println(student.grade);
        System.out.println(student.weight);
    }
}
*/








//import java.util.Arrays;
//import dog.Dog;

/*public class Main {
    public static  void main(String[] args) {
        Dog dog_y1 = new Dog("黄大", "黄色", 6, 34);
        Dog dog_y2 = new Dog("黄二", "黄色", 4, 25);
        Dog dog_r1 = new Dog("红大", "红色", 7, 33);
        Dog dog_r2 = new Dog("红二", "红色", 6, 30);

        dog_y1.setAge(7);
        System.out.println(dog_y1.getAge());
        dog_y1.meet(dog_r1);
        dog_r2.meet(dog_r1);
        dog_y2.meet(dog_r1);
        System.out.println("总共" + Dog.getNum() + "只狗");
    }
}*/

/*
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while(scanner.hasNextInt()) {
            int x = scanner.nextInt();
            int y = scanner.nextInt();
            Date date = new Date(x, y);
            System.out.println(date.getX() + date.getY());
        }
    }
}
class Date {
    private int x;
    private int y;
    public int getX() {
        return x;
    }
    public int getY() {
        return y;
    }
    public Date(int x, int y) {
        this.x = x;
        this.y = y;
    }
}*/
